Resource URL: /platform/<<version=4>>/protocols/ndmp/settings/preferred-ips/<id>

    Overview: This resource applies to manage preferred ip preferences.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Get one preference by id.

       URL: GET
            /platform/<<version=4>>/protocols/ndmp/settings/preferred-ips/<id>

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "description": "Get a list of preferred ip preferences.", 
      "properties": {
        "total": {
          "type": "integer", 
          "description": "The number of preferences."
        }, 
        "preferences": {
          "type": "array", 
          "properties": {
            "scope": {
              "type": "string", 
              "description": "Either cluster or a network subnet defined in OneFS."
            }, 
            "id": {
              "type": "string", 
              "description": "The unique display id, same as scope"
            }, 
            "data_subnets": {
              "type": "array", 
              "properties": {
                "subnet": {
                  "type": "string", 
                  "description": "The name of a subnet."
                }
              }
            }
          }
        }, 
        "resume": {
          "type": "string", 
          "description": "Resume string returned by previous query."
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify a preferred ip preference.

       URL: PUT
            /platform/<<version=4>>/protocols/ndmp/settings/preferred-ips/<id>

There are no query arguments for this method.

Required PUT request body fields:
data_subnets

PUT request body schema:
{
  "type": "object", 
  "properties": {
    "data_subnets": {
      "required": true, 
      "type": "array", 
      "properties": {
        "subnet": {
          "type": "string", 
          "description": "The name of a subnet."
        }
      }
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method DELETE: Delete a preferred ip preference.

          URL: DELETE
               /platform/<<version=4>>/protocols/ndmp/settings/preferred-ips/<id>

There are no query arguments for this method.

There is no JSON response body for this method.
